/*
 * @Author: your name
 * @Date: 2021-12-29 10:34:39
 * @LastEditTime: 2021-12-29 12:52:47
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \my\src\layout\login\Login.js
 */
import { Button } from 'antd'
import React from 'react'
import { useNavigate } from 'react-router-dom'
export default function Login() {
	const navigate = useNavigate()
	return (
		<div>
			<h1>登录页面</h1>
			<Button type='primary' onClick={()=>navigate('/index')}>登录</Button>
		</div>
	)
}
